package com.elegant.code.spi.dao.mybatis;

import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by dulei on 10/9/17.
 */
@Configuration
@ConditionalOnBean(AuditingProvider.class)
public class MybatisAuditConfiguration {


    @Bean
    public MybatisAuditAOPDefault auditAspect(){
        return new MybatisAuditAOPDefault();
    }

}
